<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>Examples</title>
    <meta name="description" content="">
    <meta name="keywords" content="">
    <link href="" rel="stylesheet">
</head>

<body>
</body>
<script type="text/javascript">
onDblClickRow: function(rowIndex, rowData) {
        if (editRow != undefined) {
            $("#admin_gamelist_datagrid").datagrid('endEdit', editRow);
        }
        if (editRow == undefined) {
            $("#admin_gamelist_datagrid").datagrid('beginEdit', rowIndex);
            editRow = rowIndex;
            $("#admin_gamelist_datagrid").datagrid('unselectAll');
        }
        synchCategory(rowIndex, rowData);
    }, 　
    function synchCategory(rowIndex, rowData) {
        var jqData;
        var url = '${pageContexntextPath}/skipController/secCate.do pid=' + rowData.pcategoryid;
        var ed = $('#admin_gamelist_datagrid').datagrid('getEditor', {
            index: rowIndex,
            field: 'categoryname'
        });
        $.ajax({
            url: url,
            dataType: 'json',
            type: 'POST',
            success: function(data) {
                jqData = data;
                $(ed.target).combobox('loadData', jqData);
            }
        });
    }
</script>

</html>
